﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace CinemabookingWCFApp.MovieRunTimes
{

    [ServiceContract]
    public interface IMovieRunTimeService
    {
        [OperationContract]
        List<MovieRunTime> GetRunTime(int RunId);

        [OperationContract]
        List<MovieRunTime> GetAllRunTime();

        [OperationContract]
        List<MovieRunTime> GetRunTimeOnMovNameAndDate(string MovName, string MovDate);

        [OperationContract]
        List<MovieRunTime> GetRunTimeOnDate(string MovDate);

        [OperationContract]
        List<MovieRunTime> GetRunTimeOnNameDateAndTime(string MovName, string MovDate, string MovTime);

        [OperationContract]
        void SaveRunTime(string MovName, int TheaterId, string PlayTimeId, string DateId);

        [OperationContract]
        void DeleteRunTime(int RunId);

        [OperationContract]
        void UpdateRunTime(int RunId, string MovName, int TheaterId, string PlayTimeId, string DateId);

        [OperationContract]
        List<string> GetMovieNameOnId(int MovId);

    }
}
